package study.week03.gateway_final.filter;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.FullHttpResponse;

public class CustomHttpFilter1 implements CustomHttpFilter {
    @Override
    public boolean inbound(FullHttpRequest fullRequest, ChannelHandlerContext ctx) {
        fullRequest.headers().set("inbound-header", "inbound");
        System.out.println("inbound ======1");
        return true;
    }

    @Override
    public boolean outbound(FullHttpResponse response) {
        response.headers().set("outbound-header", "outbound");
        System.out.println("outbound ======1");
        return true;
    }
}
